question

prajwal-gudadoor avatar image
0 Likes"
prajwal-gudadoor asked Arun Kr answered

Has anyone tried Knapsack problem in Flexsim?

I am trying to solve the knapsack problem in flexsim but I am confused on how to approach this.

FlexSim 24.0.3
optimizationknapsack
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Arun Kr avatar image
0 Likes"
Arun Kr answered prajwal-gudadoor commented

Hi @prajwal_gudadoor ,

You can write the knapsnack-solving algorithm using flexscript or you can create the algorithm in Python and execute it from Flexsim and display the result in Flexsim.

To write flexscript go through writing logic in FlexSim.

https://docs.flexsim.com/en/24.1/Reference/CodingInFlexSim/WritingLogic/WritingLogic.html#app

For connecting to python

https://docs.flexsim.com/en/24.1/Reference/DeveloperAdvancedUser/ConnectingToExternalCode/ConnectingToExternalCode.html#app

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.